from rest_framework.generics import ListCreateAPIView,RetrieveUpdateAPIView
from goods.models import Brand
from meiduo_admin.serializers.brands import BrangSerializer
from meiduo_admin.utils import PageNum


class BrandsView(ListCreateAPIView):
    serializer_class = BrangSerializer
    queryset = Brand.objects.all()
    pagination_class = PageNum

class BrandsDetailView(RetrieveUpdateAPIView):
    serializer_class = BrangSerializer
    queryset = Brand.objects.all()
    pagination_class = PageNum





